<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">

<h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <h:outputStylesheet library="css" name="login.css"/>
    <link rel="shortcut icon" href="#{resource['images/favicon.ico']}" type="image/x-icon"/>
    <title>#{msg['Page.Title']}</title>
</h:head>

<h:body>
    <h:form id="loginFrom" prependId="false">
        <rich:panel header="#{msg['login.Title']}" id="loginPanel">
            <h:panelGrid columns="1">
                <h:panelGroup id="msg">
                    <rich:messages id="errorMsg"/>
                </h:panelGroup>
                <h:panelGrid columns="2">
                    <h:outputLabel id="loginNameLable" for="loginName" value="#{msg['login.loginName']}"/>
                    <h:inputText id="loginName" value="#{authentication.user.userName}"/>
                    <h:outputLabel id="passwordLable" for="password" value="#{msg['login.Password']}"/>
                    <h:inputSecret id="password" value="#{authentication.user.password}"/>
                    <h:commandButton id="loginButton" value="#{msg['button.Login']}"
                                     action="#{authentication.userLogin}"/>
                </h:panelGrid>
            </h:panelGrid>
        </rich:panel>
    </h:form>
</h:body>
</html>